#include "ShareFile.h"

ShareFile::ShareFile(QWidget* parent) :QWidget(parent)
{
	m_pSelectAllPB = new QPushButton("全选");
	m_pCancelSelectPB = new QPushButton("取消选择");
	m_pOKPB = new QPushButton("确定");
	m_pCancelPB = new QPushButton("取消");
	m_pSA = new QScrollArea;
	m_pFriendW = new QWidget;
	m_pButtonGroup = new QButtonGroup(m_pFriendW);

	QHBoxLayout* pTopHBL = new QHBoxLayout;
	pTopHBL->addWidget(m_pSelectAllPB);
	pTopHBL->addWidget(m_pCancelSelectPB);
	pTopHBL->addStretch();

	QHBoxLayout* pBottomHBL = new QHBoxLayout;
	pBottomHBL->addWidget(m_pOKPB);
	pBottomHBL->addWidget(m_pCancelPB);

	QVBoxLayout* pMainVBL = new QVBoxLayout;
	pMainVBL->addLayout(pTopHBL);
	pMainVBL->addWidget(m_pSA);
	pMainVBL->addLayout(pBottomHBL);

	setLayout(pMainVBL);
}
